/* $RCSFile: ADN_Events.cs $
 * Apache license v2 2011 by Christian Surieux
 * $Source: ?/ADNCRM.Core/Configuration/ADN_Events.cs $
 * $log$
 * Revision 6 2010/08/06 19:56:27  christian.surieux
 *   Added Log to All cs files
 */

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Web.Security;
using System.Web.Mail;
using AddonNice.UI;
using AddonNice.UI.WebControls;
using AddonNice.Configuration;

namespace AddonNice.Events
{
	/// <summary>
	/// The SignIn User Control enables clients to authenticate themselves using 
	/// the ASP.NET Forms based authentication system.
	///
	/// When a client enters their username/password within the appropriate
	/// textboxes and clicks the "Login" button, the LoginBtn_Click event
	/// handler executes on the server and attempts to validate their
	/// credentials against a SQL database.
	///
	/// If the password check succeeds, then the LoginBtn_Click event handler
	/// sets the customers username in an encrypted cookieID and redirects
	/// back to the portal home page.
	/// 
	/// If the password check fails, then an appropriate error message
	/// is displayed.
	/// </summary>
	/// 
	


	// define a custom event class 
	public class PwdEventArgs : EventArgs
	{
		// Product ID as a property
		private string _newPwd;
		public string Pwd
		{
			get { return _newPwd; }
			set { _newPwd = value; }
		}

		private string _Answer;
		public string Answer
		{
			get { return _Answer; }
			set { _Answer = value; }
		}

		// constructor from a productID
		public PwdEventArgs(string ans,string npwd)
		{
			_newPwd		=	npwd;
			_Answer		=	ans;
		}
	}

	// define a new delegate that use our custom eventArg class above
	public delegate void PwdSetEventHandler(object sender, PwdEventArgs e);


}
